
<?php 

if (count($this->results) == 0){?>


<?php } else {?>

<h1 class="home" style="margin-top:25px;">Top Users</h1>
<ul class="thumbnails">
		
<div class="dotline"></div>
	<?php
foreach ($this->results as $user) { 
	?>
    
    <li>
    	<a title="<?php echo $user->name;?>" href="<?php echo $this->url(array("controller"=>"user", "action"=>"profile", "uid"=>$user->id), "default", true);?>">
    	<img src="<?php echo $this->userThumbnail($user); ?>"/></a>	
    	<?php 
$uc = User::checkUserAuthProvider($user, AuthProvider::FACEBOOK);
if (!empty($uc)) {
?><a target="_blank" id="fbIcon" title="<?php echo $user->name;?> has connected with Facebook, isn't he/she more trustworthy? Click to check out!" href="http://www.facebook.com/profile.php?id=<?php echo $uc->auth_uid;?>">
fb</a>
<?php }?>
    </li>
<?php
}

?>
<div class="dotline"></div></ul>
<?php }
?>